/* 定义全局变量 */
:root {
    --rotate-speed: 25;
    --count: 8;
    --easing: cubic-bezier(0.000, 0.37, 1.000, 0.63);
}

/* 设置页面样式 */
/*body {*/
/*    margin: 0;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    height: 100vh;*/
/*    background-image: linear-gradient(to top, #a18cd177 0%, #fbc2eb77 100%);*/
/*}*/

/* 设置容器样式 */
.void {
    width: 100%;
    max-width: 1024px;
    margin: auto;
    position: relative;
    aspect-ratio: 1 / 1;
}

.back {
    background-size: cover;
    background-image: url("@/assets/back/2.jpg");
}

/* 鼠标悬停时暂停动画 */
.crop ul:hover * {
    animation-play-state: paused;
}

.crop:hover +.mask img {
    animation-play-state: paused;
}

/* 设置列表样式 */
.crop ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    z-index: 1;
}

/* 设置列表项样式 */
.crop li {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    animation: rotateCW calc(var(--rotate-speed) * 1s) var(--easing) infinite;
}

/* 设置卡片样式 */
.crop .card {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 8px;
    margin: 16px 24px;
    background: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(70, 0, 255, 0.1),
    0px 16px 32px rgba(165, 135, 255, 0.1);
    border-radius: 12px;
    font: 400 14px '';
    color: #535062;
    z-index: 9999999;
    animation: rotateCCW calc(var(--rotate-speed) * 1s) var(--easing) infinite;
}

/* 设置图片样式 */
.card img {
    width: 100%;
}

/* 设置链接样式 */
.card a {
    text-decoration: none;
    color: unset;
    display: block;
    height: 105px;
    text-align: left;
    overflow: hidden;
}

/* 设置模型名称样式 */
.model-name {
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    display: block;
    letter-spacing: 3px;
}

/* 设置SVG样式 */
svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 设置不同列表项的动画延迟 */
.crop li:nth-child(2),
li:nth-child(2) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -1s);
}

.crop li:nth-child(3),
li:nth-child(3) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -2s);
}

.crop li:nth-child(4),
li:nth-child(4) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -3s);
}

.crop li:nth-child(5),
li:nth-child(5) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -4s);
}

.crop li:nth-child(6),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -5s);
}

.crop li:nth-child(7),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -6s);
}

.crop li:nth-child(8),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -7s);
}

.crop li:nth-child(9),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -8s);
}

.crop li:nth-child(10),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -9s);
}

.crop li:nth-child(11),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -10s);
}

.crop li:nth-child(12),
li:nth-child(6) .card {
    animation-delay: calc((var(--rotate-speed) / var(--count)) * -11s);
}

/* 定义顺时针旋转动画 */
@keyframes rotateCW {
    from {
        transform: translate3d(0px, -50%, -1px) rotate(-45deg);
    }

    to {
        transform: translate3d(0px, -50%, 0px) rotate(-315deg);
    }
}

/* 定义逆时针旋转动画 */
@keyframes rotateCCW {
    from {
        transform: rotate(45deg);
        z-index: -1000;
    }

    to {
        transform: rotate(315deg);
        z-index: 10000000;
    }
    0%, 30% {
        opacity: 0;
    }
    30%, 70% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0;
    }
}


/* 设置中心圆样式 */
.center-circle {
    position: absolute;
    width: 230px;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0px 18px 36px -18px rgba(12, 5, 46, 0.3),
    0px 30px 60px -12px rgba(12, 5, 46, 0.25);
    border-radius: 50%;
    background-size: cover;
    background-position: -35px 0;
}

/* 设置第二个圆样式 */
.second-circle {
    position: absolute;
    width: 40%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #F5F4FE;
    opacity: 0.5;
    box-shadow: 0px 18px 36px -18px rgba(12, 5, 46, 0.3),
    0px 30px 60px -12px rgba(12, 5, 46, 0.25);
    border-radius: 50%;
    background-image: url("@/assets/back/1.webp");
}

/* 设置最后一个圆样式 */
.last-circle {
    position: absolute;
    width: 66%;
    aspect-ratio: 1 / 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #F5F4FE;
    opacity: 0.25;
    box-shadow: 0px 18px 36px -18px rgba(12, 5, 46, 0.3),
    0px 30px 60px -12px rgba(12, 5, 46, 0.25);
    border-radius: 50%;
    background-image: url("@/assets/back/2.webp");
}

/* 设置裁剪样式 */
.crop {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1));
}

/* 设置遮罩样式 */
.mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    /*background-image: radial-gradient(100% 50% at 100% 50%,*/
    /*rgba(220, 82, 82, 0.25) 0%,*/
    /*rgba(226, 111, 103, 0.241896) 20%,*/
    /*rgba(53, 26, 229, 0.1872) 40%,*/
    /*rgba(41, 23, 240, 0.104) 60%,*/
    /*rgba(34, 26, 229, 0.0184296) 90%,*/
    /*rgba(32, 26, 229, 0) 100%);*/
}

/* 设置遮罩样式后的效果 */
.mask:after {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    right: 0;
    display: block;
    background-image: linear-gradient(180deg, rgba(60, 26, 229, 0) 0%,
    rgb(220, 82, 82) 50%, rgba(220, 82, 82, 0) 100%);
}

.mask img {
    position: absolute;
    left: calc(50% - 15px);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: 536px;
    background-image: url("@/assets/history/1.webp");
    height: 283px;
    background-size: cover;
}

.mask img {
    animation: move 25s  infinite;
}

@keyframes move {
    17%,33%{
        background-image: url("@/assets/history/2.webp");
    }
    33% ,49%{
        background-image: url("@/assets/history/3.webp");
    }
    49%,66% {
        background-image: url("@/assets/history/4.webp");
    }
    66%,73% {
        background-image: url("@/assets/history/5.webp");
    }
    73%,100% {
        background-image: url("@/assets/history/6.webp");
    }

}
